FROM ubuntu:18.04

MAINTAINER ygidtu

WORKDIR /root

RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak

COPY sources.list /etc/apt/sources.list
COPY bedtools-2.23.0.tar.gz ./
COPY *.py ./

RUN apt-get update && apt-get install -y python python3 python3-pip zlib1g-dev

RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tqdm click

RUN tar -xvzf bedtools-2.23.0.tar.gz
WORKDIR bedtools2

RUN make && make install
RUN bedtools --version

CMD ["python3", "/root/ePSI.py"]